//
//  LJFLoginHeadView.m
//  SevenZhou
//
//  Created by qianfeng on 15/9/27.
//  Copyright (c) 2015年 ljf. All rights reserved.
//

#import "LJFLoginHeadView.h"

@implementation LJFLoginHeadView

- (void)awakeFromNib
{
    [self setCheckButtonCor];
    
    [self addTapToGoview];
}

- (void)setCheckButtonCor
{
    _checkButton.layer.cornerRadius = 10;
    _checkButton.layer.borderWidth = 1;
    _checkButton.layer.borderColor = [UIColor whiteColor].CGColor;
}

- (void)addTapToGoview
{
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap)];
    
    [_goView addGestureRecognizer:tap];
}

- (void)tap
{
    [_mydelegate loginHeadViewGetNumberData:self];
}

- (void)setDict:(NSDictionary *)dict
{
    _dict = dict;
    _name.text = dict[@"user"][@"name"];
    _honor.text = dict[@"user"][@"rank_name"];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
